package com.demo;

import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.Test;

/**
 * Created by Aaron on 2017/7/2.
 */
public class CrossAPP extends BasicTestCase{


    @Test
    public void testName() throws Exception {
//        WebDriverWait wait = new WebDriverWait(driver,10);
//        wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("com.netease.newsreader.activity:id/dz")));
//        driver.findElements(By.id("com.netease.newsreader.activity:id/dz")).get(1).click();
//        wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("com.netease.newsreader.activity:id/an8")));
//        driver.findElement(By.id("com.netease.newsreader.activity:id/an8")).click();
//        wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("com.netease.newsreader.activity:id/dy")));
//        driver.findElements(By.id("com.netease.newsreader.activity:id/dy")).get(5).click();
//        wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("com.tencent.mobileqq:id/icon")));
//        driver.findElements(By.id("com.tencent.mobileqq:id/icon")).get(0).click();
//        Thread.sleep(6000);
    }



}
